a wonderful math problem